
row = 9             # 定义初始值，倒序打印行
while 0 < row < 10 :
    col = 1
    while col <= row:
        res = row * col
        print('{0}*{1}={2:2d}'.format(col, row, res), end ="  ")
        col += 1
    row -= 1
    print()
